package com.wlzg.collectiontool.model.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.google.gson.annotations.SerializedName
import com.wlzg.collectiontool.db.HunjieConvert
import com.wlzg.collectiontool.db.ImageConvert
import com.wlzg.collectiontool.util.DateUtil

@Entity(tableName = "Pspfk")
@TypeConverters(HunjieConvert::class, ImageConvert::class)
 class Pspfk :BaseGuandian(){
    @PrimaryKey(autoGenerate = true)
    var pfkid :Long?=null
    @SerializedName("addr")
    var addr: String? = null

    @SerializedName("bottomEle")
    var bottomEle = 0

    @SerializedName("connected")
    var connected = 0

    @SerializedName("construction")
    var construction: String? = null

    @SerializedName("createBy")
    var createBy: String? = null

    @SerializedName("createTime")
    var createTime: String? = null

    @SerializedName("datasource")
    var datasource = 0

    @SerializedName("delFlag")
    var delFlag = 0

    @SerializedName("districtId")
    var districtId: String? = null

    @SerializedName("districtName")
    var districtName: String? = null

    @SerializedName("fileRelation")
    var fileRelation: String? = null

    @SerializedName("flap")
    var flap = 0

    @SerializedName("flapBotel")
    var flapBotel = 0.0

    @SerializedName("flapDiame")
    var flapDiame = 0.0

    @SerializedName("flapMater")
    var flapMater = 0

    @SerializedName("flapTopel")
    var flapTopel = 0.0

    @SerializedName("hybjunFlow")
    var hybjunFlow = 0

    @SerializedName("hybjunQua")
    var hybjunQua = 0

    @SerializedName("hybjunction")
    var hybjunction = 0

    @SerializedName("locationcode")
    var locationcode: String? = null

    @SerializedName("name")
    var name: String? = null

    @SerializedName("normalLev")
    var normalLev = 0

    @SerializedName("objectid")
    var objectid = 0

    @SerializedName("outfallCa")
    var outfallCa = 0

    @SerializedName("outfallTy")
    var outfallTy = 0

    @SerializedName("outfallcode")
    var outfallcode: String? = null

    @SerializedName("outfallid")
    var outfallid: String? = null

    @SerializedName("ownershipUnit")
    var ownershipUnit: String? = null

    @SerializedName("pipeType")
    var pipeType = 0

    @SerializedName("pipecode")
    var pipecode: String? = null

    @SerializedName("pipename")
    var pipename: String? = null

    @SerializedName("pipenum")
    var pipenum = 0

    @SerializedName("receivewat")
    var receivewat: String? = null

    @SerializedName("recordDate")
    var recordDate: String? = null

    @SerializedName("remark")
    var remark: String? = null
   @SerializedName("remark2")
   var remark2: String? = null

    @SerializedName("reportDate")
    var reportDate: String? = null

    @SerializedName("reportUnit")
    var reportUnit: String? = null

    @SerializedName("roadName")
    var roadName: String? = null

    @SerializedName("shape")
    var shape: String? = null

    @SerializedName("status")
    var status = 0

    @SerializedName("updateBy")
    var updateBy: String? = null

    @SerializedName("updateTime")
    var updateTime: String? = null

    @SerializedName("x1Coor")
    var x1Coor = 0.0

    @SerializedName("xcoor")
    var xcoor = 0

    @SerializedName("y1Coor")
    var y1Coor = 0.0

    @SerializedName("ycoor")
    var ycoor = 0

    init {
        createTime= DateUtil.getCurData()
    }
  }